<?php defined('BASEPATH') OR exit('No direct script access allowed');   ?>

<head>
    <title><?php echo $title; ?></title>
    <?php $this->load->module('admin/index/page_header');?>
</head>
<div class="nav">
    <ul>
        <li class="current">
            <a  href="<?php echo site_url('weixin/actioninfo_prize')?>">奖品列表</a>
        </li>
         <li>
            <a href="<?php echo site_url('weixin/actioninfo_prize/show_add')?>" >添加奖品</a>
        </li>
    </ul>
</div>
<form runat="server" name="form1" method="" >
<body>
<div style="width:10%; float:left">
	<ul>
    	<li>
        	<a href="<?php echo site_url('/weixin/actioninfo_prize/index');?>">全部奖品</a>
        </li>
    <?php foreach($allaction as $key=>$val){ ?>
    	<li style="line-height:30px;">
        <a href="<?php echo site_url('/weixin/actioninfo_prize/index/'.$val->aid); ?>"><?php echo $val->aname; ?></a></li>
    <?php }?>
    </ul>
</div>
<div style="width:88%; float:left">
	<?php echo "奖品如下"; ?> <br> 
    <table style="width:100%;" align="center"> 
    <tr style=" font-size:12px; font-weight:bold; height:35px;">
    <td>奖品名称</td>
    <td>奖品数量</td>
    <td>中奖几率</td>
    <td>所属活动</td>
    <td>奖品类型</td>
    <td>奖品编码</td>
    <td>操作</td>
    </tr>
    <?php
    foreach ($list as $items){?>
        <tr>
            <td><?php echo $items->pname; ?></td>
            <td><?php echo $items->pnumb; ?></td>		
            <td><?php echo $items->pchange; ?></td>
            <td><?php echo $items->aname; ?></td>
            <td><?php if($items->ptype==1){ echo '实物';}else echo '虚拟'; ?></td>
            <td><?php echo $items->pcode; ?></td>
            <td><a href="<?php echo site_url('/weixin/actioninfo_prize/product_del/'.$items->pid); ?>">删除</a>
                <a target="_blank" href="<?php echo site_url('/weixin/actioninfo_prize/show_edit/'.$items->pid); ?>">编辑</a>
            </td>
        </tr>
          
    <?php } ?>
    </table>
    <br>
    <p align="center">
        <?php echo $pagelists; ?>
    </p>
</div>
</body>
</form>
</html>